package com.ice.body.business.service.impl;
import com.ice.body.business.dao.VideoMonitorDao;
import com.ice.body.business.model.VideoMonitorModel;
import com.ice.body.business.service.VideoMonitorService;
import com.ice.base.dao.BaseDao;
import com.ice.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
/**
 * Created with GuoYanBin.
 * Description:业务接口-监控录像 serviceImpl
 * Date: 2021-06-18
 * Time: 02:58
 */
@Service
public class VideoMonitorServiceImpl extends BaseServiceImpl<VideoMonitorModel> implements VideoMonitorService{
    @Resource 
    private VideoMonitorDao dao;

    private VideoMonitorModel videoMonitoring;

    @Override
    public BaseDao<VideoMonitorModel> getBaseDao() {
        return dao;
    }

    @Override
    public boolean addVideoSelective(VideoMonitorModel videoMonitoring) {
        this.videoMonitoring = videoMonitoring;
        boolean flagVal = false;
        if (dao.insert(videoMonitoring) > 0) {
            flagVal = true;
        }
        return flagVal;
    }

    @Override
    public boolean delete7Videos() {
        return dao.delete7Videos() ;
    }
}
